package com.tbit.uqbike.client.quartz;

import com.tbit.uqbike.client.constant.SystemData;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Author: chen
 * @Description: 缓存值清除
 * @Date: 创建于 14:27 2021/5/25
 */
@Component
@Slf4j
public class CatchExpireQuartz {


    @Scheduled(cron = "0 0 1 * * ?")
    public void getMachines() {
        SystemData.orderTime.clear();
        SystemData.userBle.clear();
        SystemData.bleMap.clear();
        SystemData.returnTypeMap.clear();
    }

}
